riscv: Add a helper routine to print CPU information
authorBin Meng <[email protected]>
Wed, 26 Sep 2018 13:55:14 +0000 (06:55 -0700)
committerAndes <[email protected]>
Wed, 3 Oct 2018 09:47:55 +0000 (17:47 +0800)
commit2fab2e9c88c4ceba9156411474b8cfceadeb61fa
treede3ddfca651faf0b4a4b6796c68fca87ba981f36
parentce7a8e0740f1f9ec915109392184d335ba231448
riscv: Add a helper routine to print CPU information

This adds a helper routine to print CPU information. Currently
it prints all the instruction set extensions that the processor
core supports.

Signed-off-by: Bin Meng <[email protected]>
Reviewed-by: Lukas Auer <[email protected]>
arch/riscv/Makefile
arch/riscv/cpu/Makefile [new file with mode: 0644]
arch/riscv/cpu/cpu.c [new file with mode: 0644]
arch/riscv/include/asm/csr.h [new file with mode: 0644]